package com.yonyou.iuap.shell.service.impl;

import java.util.List;

import net.sf.json.JSONObject;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import com.yonyou.iuap.pub.JsonUtils;
import com.yonyou.iuap.shell.dao.BdIndustrychartProductEntityDao;
import com.yonyou.iuap.shell.entity.BdIndustrychartProductEntity;
import com.yonyou.iuap.shell.entity.BdKnowledgeCategoryEntity;
import com.yonyou.iuap.shell.pub.IShellDaoEnum;
import com.yonyou.iuap.shell.pub.IShellServiceEnum;
import com.yonyou.iuap.shell.pub.RequestDto;
import com.yonyou.iuap.shell.pub.ResultDto;
import com.yonyou.iuap.shell.service.intf.IIndustrychartproductService;
/**
 * 
 * 行业图表与壳牌产品关系
 * 
 * **/
@Service(value=IShellServiceEnum.Shell_Service_Industrychartproduct)
public class IndustrychartproductServiceImpl implements IIndustrychartproductService{
	
	@Autowired
	@Qualifier(IShellDaoEnum.Shell_Dao_Industrychartchartproduct)
	private BdIndustrychartProductEntityDao<BdIndustrychartProductEntity> bdIndustrychartProductEntityDao;
	public int deleteByPrimaryKey(String paramString) {
		// TODO 自动生成的方法存根
		return bdIndustrychartProductEntityDao.deleteByPrimaryKey(paramString);
	}

	public int insert(String paramT) {
		JSONObject json=JSONObject.fromObject(paramT);
		BdIndustrychartProductEntity bdIndustrychartProductEntity=(BdIndustrychartProductEntity)json.toBean(json,BdIndustrychartProductEntity.class);
		// TODO 自动生成的方法存根
		return bdIndustrychartProductEntityDao.insertSelective(bdIndustrychartProductEntity);
	}

	public BdIndustrychartProductEntity selectByPrimaryKey(String paramString) {
		// TODO 自动生成的方法存根
		return bdIndustrychartProductEntityDao.selectByPrimaryKey(paramString);
	}

	public List<BdIndustrychartProductEntity> selectAll() {
		// TODO 自动生成的方法存根
		return bdIndustrychartProductEntityDao.selectAll();
	}

	public int updateByPrimaryKey(String paramT) {
		JSONObject json=JSONObject.fromObject(paramT);
		BdIndustrychartProductEntity bdIndustrychartProductEntity=(BdIndustrychartProductEntity)json.toBean(json,BdIndustrychartProductEntity.class);
		return bdIndustrychartProductEntityDao.updateByPrimaryKey(bdIndustrychartProductEntity);
	}

	public List<BdIndustrychartProductEntity> selectByCondition(
			String paramString) {
		// TODO 自动生成的方法存根
		return bdIndustrychartProductEntityDao.selectByCondition(paramString);
	}

	public int countByCondition(String paramString) {
		// TODO 自动生成的方法存根
		return bdIndustrychartProductEntityDao.countByCondition(paramString);
	}

	public int deleteByCondition(String paramString) {
		// TODO 自动生成的方法存根
		return bdIndustrychartProductEntityDao.deleteByCondition(paramString);
	}

	public int insertSelective(String paramT) {
		JSONObject json=JSONObject.fromObject(paramT);
		BdIndustrychartProductEntity bdIndustrychartProductEntity=(BdIndustrychartProductEntity)json.toBean(json,BdIndustrychartProductEntity.class);
		return bdIndustrychartProductEntityDao.insertSelective(bdIndustrychartProductEntity);
	}

	public int updateByPrimaryKeySelective(String paramT) {
		// TODO 自动生成的方法存根
		JSONObject json=JSONObject.fromObject(paramT);
		BdIndustrychartProductEntity bdIndustrychartProductEntity=(BdIndustrychartProductEntity)json.toBean(json,BdIndustrychartProductEntity.class);
		return bdIndustrychartProductEntityDao.updateByPrimaryKeySelective(bdIndustrychartProductEntity);
	}

	public ResultDto queryIndustrychartproduct(RequestDto reqDto) {
		// TODO 自动生成的方法存根
		ResultDto resultDto=new ResultDto();
		reqDto.setPageNum(0);
		reqDto.setPageSize(15);
		reqDto.setPk_user("pk_zhangsan");
		return (ResultDto) bdIndustrychartProductEntityDao.selectAll();
	}

	public int insert(BdIndustrychartProductEntity supplier) {
		return bdIndustrychartProductEntityDao.insertSelective(supplier);
	}

	public int updateByPrimaryKey(BdIndustrychartProductEntity supplier) {
		return bdIndustrychartProductEntityDao.updateByPrimaryKey(supplier);
	}

	public int getCount(String paramString) {
		return bdIndustrychartProductEntityDao.getCount(paramString);
	}

}
